﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PoshBoard.VisualDesigner.Controls
{
    /// <summary>
    /// Interaction logic for DashBoard.xaml
    /// </summary>
    /// 
     [ProvideToolboxControl("PoshBoard.VisualDesigner.Controls", true)]
    public partial class NewDashBoard : UserControl, IPBComponentBase
    {
        public NewDashBoard()
        {
            InitializeComponent();
        }

        public string CommandBase { get { return "New-DashBoard"; } }

        public string PSName { get; set; }

        public void BuildPSName(string parentName)
        {
            this.PSName = "$" + parentName + "_" + this.Name;
        }

        public string GetParameters()
        {
            string param = PSScriptHelper.GetCommonParameters(this);
            return param;
        }

        public string GetConstructionScript()
        {
            return PSScriptHelper.BuildPSScript(this, this.Name, null);
        }
    }
}
